project(Game)
aux_source_directory(manager MANAGER_FILE)
aux_source_directory(map MAP_FILE)
aux_source_directory(data DATA_FILE)
aux_source_directory(ui UI_FILE)
aux_source_directory(wave WAVE_FILE)
aux_source_directory(object/base OBJECT_BASE_FILE)
aux_source_directory(object/hero OBJECT_HERO_FILE)
aux_source_directory(object/monster OBJECT_MONSTER_FILE)
aux_source_directory(object/skill OBJECT_SKILL_FILE)
add_library(${PROJECT_NAME} STATIC
        ${MANAGER_FILE}
        ${MAP_FILE}
        ${DATA_FILE}
        ${OBJECT_BASE_FILE}
        ${OBJECT_HERO_FILE}
        ${OBJECT_MONSTER_FILE}
        ${OBJECT_SKILL_FILE}
        ${UI_FILE}
        ${WAVE_FILE}
)
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/thirdparty/SDL2_gfx/lib/x64/libSDL2_gfx.a)
target_link_libraries(${GAME_EXECUTABLE_NAME} ${PROJECT_NAME})

target_include_directories(${PROJECT_NAME} PRIVATE
        ${COMMON_HEADERS}
        ${CMAKE_SOURCE_DIR}/src/game/core
        ${CMAKE_SOURCE_DIR}/src/game/enum
)